package com.wh.common.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wh.common.pojo.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 1
 * @since 2024-06-21 星期五 18:50:41
 */
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {
    List<Notice> findByPage(@Param("page")IPage<Notice> page, @Param("ew")QueryWrapper<Notice> queryWrapper);

    Notice selectTop();

    Notice selectLastTime();


    void updateTop(Integer id, Integer top);
}
